<div class="container-fluid">
  <h3 style="border-bottom:1px solid #F1F1F1;padding-bottom:10px;padding-left:10px;">客户分配</h3>
  <div class="panel panel-default">
    <div class="panel-heading">
      <p class="panel-title" style="height:35px;line-height:35px">客户分配列表</p>
    </div>
    <div class="panel-body">
      <table class=" table table-bordered" >
        <tr>
          <th><strong>姓名
          </strong></th>
          <th><strong>状态</strong></th>
          <th><strong>
          来源
          </strong></th>
          <th><strong>类型</strong></th>
          <th><strong>创建时间</strong></th>
          <th><strong>公司</strong></th>
          <th><strong>备注</strong></th>
          <th><strong>基本操作</strong></th>
        </tr>
        <?php if(isset($res)):?>
        <?php foreach($res as $v):?>
        <tr>
            <td><?php echo $v['c_name'];?></td>
            <td><?php echo $v['cstat_stat'];?></td>
            <td><?php echo $v['csource_info'];?></td>
            <td><?php echo $v['ctype_info'];?></td>
            <td><?php echo $v['c_addtime'];?></td>
            <td><?php echo $v['c_company'];?></td>
            <td><?php echo $v['c_comment'];?></td>
            <td>
               <a href="allot.php?action=allot&id=<?php echo $v['c_id']?>" style="text-decoration:none"><span class="glyphicon glyphicon-transfer"></span>分配</a>
            </td>
        </tr>
        <?php endforeach;?>
        <?php endif;?>
      </table>
      <div>
        <span class="pull-left">共有<?php echo $rowNum;?>条记录，当前第<?php echo $page;?>/<?php echo $maxPage;?>页</span>
        <ul class="pagination pull-right">
          <li><a href="relation.php?action=list&page=1">首页</a></li>
          <li><a href="relation.php?action=list&page=<?php echo  ($page!=1)?$page-1:1;?>">上一页</a></li>
          <li><a href="relation.php?action=list&page=<?php echo  ($page!=$maxPage)?$page+1:$maxPage;?>">下一页</a></li>
          <li><a href="relation.php?action=list&page=<?php echo $maxPage?>">尾页</a></li>
        </ul>
      </div>
    </div>
  </div>
</div>
